package org.dawfinn.droiditarian.data;

import com.google.protobuf.ByteString;

public class DeedLocation {
	
	private final double latitude;
	private final double longitude;
	private final String deedTitle;
	private final String locality;
	private final String country;
	private final String key;
	// Not final since it can be removed when a picture is reported
	private ByteString picture;
	
	public DeedLocation(double latitude, double longitude, String deedTitle, ByteString picture, String locality, String country, String key) {
		this.latitude = latitude;
		this.longitude = longitude;
		this.deedTitle = deedTitle;
		this.picture = picture;
		this.locality = locality;
		this.country = country;
		this.key = key;
	}

	public double getLatitude() {
		return latitude;
	}
	
	public double getLongitude() {
		return longitude;
	}
	
	public String getDeedTitle() {
		return deedTitle;
	}
	
	public ByteString getPicture() {
		return picture;
	}
	
	public void removePicture() {
		picture = null;
	}

	public String getLocality() {
    	return locality;
    }

	public String getCountry() {
    	return country;
    }

	public String getKey() {
    	return key;
    }
}
